package com.zb.yaml;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author WEN
 * @Date 2023/9/14 0014
 **/
@Component
public class DomainPath implements InitializingBean {
    public static DomainPath domainPath;

    @Value("${path.domain}")
    private String domain;

    @Value("${mobile.path}")
    private String mobilePath;

    @Value("${mobile.network.invite-code-join-customer}")
    private String inviteCodeJoinCustomer;

    @Override
    public void afterPropertiesSet() throws Exception {
        domainPath = this;
    }

    public static String domain() {
        return domainPath.domain;
    }

    public static String getInviteCodeJoinCustomer() {
        return domainPath.inviteCodeJoinCustomer;
    }
}
